import type {Component} from "vue"
import {QuestionType} from "@/enums"

import FormInput from "./input/form-input.vue"
import FormRadio from "./radio/form-radio.vue"
import FormCheckbox from "./checkbox/form-checkbox.vue"
import FormSlider from "./slider/form-slider.vue"
import FormRate from "./rate/form-rate.vue"

export default {
    [QuestionType.INPUT]: FormInput,
    [QuestionType.RADIO]: FormRadio,
    [QuestionType.CHECKBOX]: FormCheckbox,
    [QuestionType.SLIDER]: FormSlider,
    [QuestionType.RATE]: FormRate,
} as Record<string, Component>